<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
   	<%
   	String user_type="",user_id="";
   	if(session.getAttribute("session_user_type")!=null){
   		user_type = session.getAttribute("session_user_type").toString();
   	}
   	if(session.getAttribute("session_user_id")!=null){
   		user_id = session.getAttribute("session_user_id").toString();
   	}
   	String to_url = "";
	if(!user_id.equals("")){	
		if(user_type.equals("0") || user_type.equals("1")){
			to_url = "/program/admin/index/index.jsp";
		}else if(user_type.equals("2") || user_type.equals("3")){
			to_url = "/program/company/index/index.jsp";
		}else if(user_type.equals("a")){
			to_url = "/program/member/index/index.jsp";
		}else{to_url = "/index.html";}
 	}else{
		to_url = "/data/html/login.html";
	}
 		response.sendRedirect(to_url);

 		
   	%>
    <title>my account</title>
    
  </head>
  
  <body>

  </body>
</html>

